package com.tools.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tools.dao.StudentDao;
import com.tools.entity.Student;
import com.tools.service.StudentService;

@Service(value="studentService")
@Transactional
public class StudentServiceImpl implements StudentService {

	@Autowired
	private StudentDao studentDao;
	
	public List<Student> getList(String condition) {
		// TODO Auto-generated method stub
		return studentDao.getList(condition);
	}

	public Student fetchById(int id) {
		// TODO Auto-generated method stub
		return studentDao.fetchById(id);
	}

}
